// 管理整个项目的所有接口
import http from "./http";
import { mockService } from "./users";
// 课程列表接口
export const getClassListApi = (params) => http.get("/api/classlist", params);
//哈弗接口
export const getHaApi = (params) => http.get("/api/ha", params);
// 主页列表接口
export const getIndexApi = (params) => http.get("/api/classlist", params);
// 登录注册验证码
export const getCodeApi = (data) => mockService.getcode(data);
// 登录注册
export const loginApi = (data) => mockService.Login(data);
// 注册完善信息接口
export const infoApi = (data) => mockService.register(data);
// 获取成就接口
export const getAchievementApi = (params) => mockService.getAchievement(params);
// 邀请接口
export const inviteApi = (params) => http.get("/api/classlist", params);
// 钻石接口
export const diamondApi = (params) => http.get("/api/classlist", params);
// 获取我的课程接口
export const getMyClassApi = (data) => mockService.getClass(data);
// 添加我的课程接口
export const getAddMyClassApi = (data) => mockService.addClass(data);
// 添加我的课程接口
export const getDelMyClassApi = (data) => mockService.delClass(data);
// 点击我的课程接口
export const getClassIdApi = (data) => mockService.getClassId(data);
// 获取我的信息接口
export const getMyInfoApi = (data) => mockService.getMimeInfo(data);
// 获取我的设置信息
export const getSetInfoApi = (data) => mockService.getSetInfo(data);
// 修改我的设置信息
export const updataSetApi = (data) => mockService.updataSet(data);
